<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <script>
    // var obj = {
    //     name: '可可',
    //     type: '阿拉斯加犬',
    //     age: 5,
    //     color: 'red',
    //     bark: function () {
    //         console.log('汪汪汪');
    //     },
    //     showFilm: function () {
    //         console.log('演电影');

    //     }
    // }
    // console.log(obj.type);
    // obj.bark()

    // var obj = new Object();
    // obj.name = '鸣人';
    // obj.sex = '男';
    // obj.age = 18;
    // obj.skil = function () {
    //     console.log('影分身术');

    // }
    // console.log(obj.name);
    // obj.skil()

    /* function Star(uname, age, sex) {
        this.name = uname;
        this.age = age;
        this.sex = sex;
        this.sing = function (sang) {
            console.log(sang);

        }
    }
    var ldh = new Star('刘德华', 18, '男');
    console.log(ldh.name);
    console.log(ldh['sex']);
    ldh.sing('冰雨'); */

    /* function lol(name, type, blood) {
        this.name = name;
        this.type = type;
        this.blood = blood;
        this.attack = function (attack) {
            console.log(attack);

        }
    }
    var gailun = new lol('盖伦', '上单', 500);
    console.log(gailun.name);
    console.log(gailun.type);
    console.log(gailun.blood);
    gailun.attack('近战');
    var aixi = new lol('艾希', 'adc', 100);
    console.log(aixi.name);
    console.log(aixi.type);
    console.log(aixi.blood);
    aixi.attack('adc'); */

    /* function Computer(color, zhongliang, pinpai, type) {
      this.color = color;
      this.zhongliang = zhongliang;
      this.pinpai = pinpai;
      this.type = type;
      this.music = function (music) {
        console.log(music);
      };
    }
    var huawei = new Computer("red", 25, 1, 2);
    console.log(huawei.color);
    huawei.music("音乐"); */
  </script>

  <body></body>
</html>
